package com.mvc.app.exceptions;

import com.container.app.annotations.ModelComponent;

import java.lang.annotation.Annotation;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/27/12
 * Time: 3:06 PM
 */
public class InvalidModelException extends InvalidRequestException {

    public InvalidModelException(String message, Throwable cause) {
        super(message, cause);
    }

    @Override
    public Class<? extends Annotation> getExpectedAnnotationClass() {
        return ModelComponent.class;
    }

    public InvalidModelException(String message) {
        super(message);
    }
}
